﻿using EM.OA.DataModel.DBModel;
using EM.OA.WebCommon.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Web;
namespace EM.OA.Portal.Models
{
    public class WFFlowConfigDetailModels : BaseViewModel
    {
        /// <summary>
        /// ID
        /// </summary>		
        [Display(Name = "ID")]
        public Guid FlowConfigDetailID { get; set; }
        /// <summary>
        /// 流程ID
        /// </summary>		
        [Display(Name = "流程ID")]
        public Guid FlowConfigID { get; set; }
        /// <summary>
        /// 步骤级别
        /// </summary>		
        [Display(Name = "步骤级别")]
        public int StepLevel { get; set; }
        /// <summary>
        /// 步骤名称
        /// </summary>		
        [Display(Name = "步骤名称")]
        public string StepName { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>		
        [Display(Name = "审批人")]
        public Guid ApprovalUserID { get; set; }

        public string NextApprovalUserName
        {
            get
            {
                EMOA_User user = new EMOA_User();
                user = new EM.OA.BLL.UserBLL().GetEntity(ApprovalUserID);
                return object.Equals(user, null) ? string.Empty : user.EmployeeName;
            }
        }

        /// <summary>
        /// 如果角色下有两个人，只走第一个人
        /// </summary>		
        [Display(Name = "如果角色下有两个人，只走第一个人")]
        public Guid ApprovalRoleID { get; set; }
        /// <summary>
        /// 抄送人
        /// </summary>		
        [Display(Name = "抄送人")]
        public string CCUserIDs { get; set; }
        /// <summary>
        /// 抄送部门
        /// </summary>		
        [Display(Name = "抄送部门")]
        public string CCDepartmentIDs { get; set; }

    }
}